package com.managertrade.config;

public class ThreadLocalHolder {
    private static final ThreadLocal<String> LOCKED_BY = new ThreadLocal<>();

    public static void setLockedBy(String lockedBy) {
        LOCKED_BY.set(lockedBy);
    }

    public static String getLockedBy() {
        return LOCKED_BY.get();
    }

    public static void clear() {
        LOCKED_BY.remove();
    }
}
